package com.example.tests;


import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;


import org.testng.annotations.Test;

import com.example.fw.GroupObject;
import com.example.fw.Groups;



public class GroupRemovalTests extends TestBase{
	@Test
	public void testSomeCanBeRemoved() throws Exception {
		Groups oldGroups = app.getGroupHelper().getGroups();
		GroupObject someGroup = oldGroups.getSomeGroup();
		app.getGroupHelper().deleteGroup(someGroup);
		Groups newGroups = app.getGroupHelper().getGroups();
		assertThat(newGroups, equalTo(oldGroups.without(someGroup)));
    }

}
